package com.woyou.ui.activity.orderlist;

import android.content.Context;
import android.graphics.Typeface;
import android.util.AttributeSet;

import com.woyou.bean.MyOrderItem;
import com.woyou.ui.adapter.MyOrderAdapter.RefreshOrderListImp;
import com.woyou.ui.view.SuperLayout;

/**
 * @author blanks
 * @创建时间 2015年9月10日 下午2:43:24
 * @version v1.0
 */
public abstract class BaseItemView extends SuperLayout {

	protected Typeface mTypeface;
	
	protected RefreshOrderListImp orderListImp;
	
	public void setRefreshOrderListImp(RefreshOrderListImp imp){
		this.orderListImp = imp;
	}

	/**
	 * @param context
	 * @param attrs
	 * @param defStyle
	 */
	public BaseItemView(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
		// TODO Auto-generated constructor stub
	}

	/**
	 * @param context
	 * @param attrs
	 */
	public BaseItemView(Context context, AttributeSet attrs) {
		super(context, attrs);
		// TODO Auto-generated constructor stub
	}

	/**
	 * @param context
	 */
	public BaseItemView(Context context) {
		super(context);
		// TODO Auto-generated constructor stub
		mTypeface = Typeface.createFromAsset(getContext().getAssets(), "Typeface/Helvetica LT 25 Ultra Light.ttf");
	}

	abstract void loadLayout();

	public abstract void loadData(MyOrderItem data);

}
